//
//  TransactionPaySuccessVC.swift
//  zhonglb_iOS
//
//  Created by lxm on 2021/12/1.
//

import UIKit

class TeleSuccessVC: ZMViewController {

    //MARK:--------------------属性--------------------
    // 是否是转赠
    @objc
    var isTransfer = false
    //MARK:--------------------UI控件--------------------
    @IBOutlet weak var titleLabel: UILabel!
    
    @IBOutlet weak var contentLabel: UILabel!
    
    @IBOutlet weak var rightBtn: UIButton!
    
    @IBOutlet weak var backBtn: UIButton!
    
    @IBOutlet weak var tipOne: UILabel!
    
    @IBOutlet weak var tipTwo: UILabel!
    
    @IBOutlet weak var tipThree: UILabel!
    
    @IBOutlet weak var tipOneContanier: UIStackView!
    @IBOutlet weak var tipTwoContanier: UIStackView!
    @IBOutlet weak var tipThreeContanier: UIStackView!
    
    //MARK:--------------------生命周期--------------------
    override func viewDidLoad() {
        super.viewDidLoad()
        setUI()
        addConstraints()
        bindAction()
    }
    //MARK:--------------------UI--------------------
    func setUI() {
        title = "完成充值"
//        if isTransfer {
//            title = "完成转赠"
//            titleLabel.text = "成功转赠助农券给好友"
//            contentLabel.text = "转赠的助农券已到好友账户，请及时告知好友查看!"
//            rightBtn.setTitle("继续转赠", for: .normal)
//            tipOne.text = "转赠助农券仅使用于平台消费，严禁非法交易！"
//            tipTwo.text = "增加爱心值可降低转赠手续费；"
//            tipThree.text = "增加信用分可降低转赠手续费。"
//        } else {
//            title = "完成付款"
//            titleLabel.text = "成功付款给商家"
//            contentLabel.text = "支付的助农券已到商家账户，请及时告知商家查看！"
//            rightBtn.setTitle("继续付款", for: .normal)
//            tipOne.text = "转赠助农券仅使用于平台消费，严禁非法交易！"
//            tipTwo.text = "扫码支付助农券手续费跟助农集市一致。"
//            tipThreeContanier.isHidden = true
//        }
    }
    func addConstraints() {
        
    }
    
    //MARK:--------------------methods--------------------
    func bindAction() {
        
    }
    
    
    @IBAction func onContinue(_ sender: Any) {
        navigationController?.popViewController(animated: true)
    }
    
    @IBAction func onBackMe(_ sender: Any) {
        navigationController?.popToRootViewController(animated: true)
    }
    //MARK:--------------------delegate--------------------

}
